<div ng-controller="ManagementCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li>{{'小程序'| translate}}</li>
        <li>{{'List'|translate}}
            <a href="#/wxapp/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
        <span class="sui-form sui-form pull-right"> 
          <input type="text"  placeholder="{{'appid'|translate}}"  ng-model="appid">
          <button class="sui-btn btn-primary" type="submit" ng-click="getList()">{{'search'|translate}}</button>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'ID'|translate}}</th>
                <th>{{'小程序类型'|translate}}</th>
                <th>{{'发布模板ID'|translate}}</th>
                <th>{{'status'|translate}}</th>
                <th>{{'版本'|translate}}</th>
                <th>{{'描述'|translate}}</th>
                <th>{{'操作'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="list in wxapps">
                <td>{{list.appid}}</td>
                <td>
                    <wxapp-type ng-model="list.app_type" stype="1"></wxapp-type>
                </td>
                <td>{{list.template_id}}</td>
                <td>
                    <wxapp-statu ng-model="list.statu" stype="1"></wxapp-statu>
                </td>
                <td>{{list.version}}</td>
                <td>{{list.description}}</td>
                <td>
                    <a href="#/wxapp/add?appid={{list.appid}}" class="sui-btn btn-primary">{{'edit'|translate}}</a>
                    <button class="sui-btn btn-danger" ng-click="delete(list.appid)">{{'delete'|translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>
    <!-- 分页start -->
    <pager page-no="1" page-size="page_Size" total="xtotal" get-data="getList(pageNo)"></pager>
    <!-- 分页end -->
</div>
